package com.iamnh.handler.impl;

import org.springframework.beans.factory.annotation.Autowired;

import com.iamnh.dao.TestTableDao;
import com.iamnh.domain.TestTable;
import com.iamnh.handler.TestTableHandler;

public class TestTableHandlerImpl implements TestTableHandler {
	
	@Autowired
	private TestTableDao testTableDao;
	
	@Override
	public TestTable save(TestTable t) {
		return testTableDao.save(t);
	}

	@Override
	public void updateTest(Long id) {
		TestTable t = testTableDao.load(id);
		System.out.println(t.getName());
		t.setName("sdfsaaaaaaaaaaaaad");
	}
	
	
	
}
